package top.buyibuyi.course.service.Impl;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.buyibuyi.course.dao.UpdateClassroomDao;
import top.buyibuyi.course.dao.UpdateCourseStateDao;
import top.buyibuyi.course.service.UpdateCourseStateService;

@Service
public class UpdateCourseStateServiceImpl implements UpdateCourseStateService {
    @Autowired
    private UpdateCourseStateDao updateCourseStateDao;
    @Override
    public Boolean updateState(@Param("state") String state, @Param("id") int id) {
        return updateCourseStateDao.updateState(state,id);
    }
}
